# -*- coding: utf-8 -*-

from flask import Flask,url_for

app = Flask(__name__, template_folder='/')

@app.route('/',endpoint='index')

def hello_world():
    return 'hello world'

def my_test():
    return 'this is test'
app.add_url_rule(rule='/test/', endpoint='test', view_func=my_test)

with app.test_request_context():
    print(url_for('test'))

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0', port=8888)